package com.cloud.configure;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class MqttProperties {

    /**
     * Mqtt服务Url
     */
    @Value("${mqtt.host_url}")
    private String hostUrl;
    /**
     * Mqtt用户名
     */
    @Value("${mqtt.user_name}")
    private String userName;
    /**
     * Mqtt密码
     */
    @Value("${mqtt.password}")
    private String password;
    /**
     * Mqtt发送者客户端标识
     */
    @Value("${mqtt.client_key}")
    private String clientKey;
    /**
     * 超时时间(秒)
     */
    @Value("${mqtt.completion_timeout}")
    private int completionTimeout;
    /**
     * 心跳时间(秒)
     */
    @Value("${mqtt.keep_alive_interval}")
    private int keepAliveInterval;
    /**
     * 超时时间(秒)
     */
    @Value("${mqtt.connection_timeout}")
    private int connectionTimeout;

}
